﻿<UserControl
	x:Class="LegoMachine.View.SelectCurrentConfigView"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
	mc:Ignorable="d" 
	d:DesignHeight="300" d:DesignWidth="300">
	<Grid>
		<ListBox
			ItemsSource="{Binding Path=Configs}"
			SelectedItem="{Binding Path=Configs.SelectedItem, Mode=TwoWay}"
			ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Disabled"
			ScrollViewer.CanContentScroll="True"
			BorderBrush="{x:Null}" BorderThickness="0">
			<ListBox.ItemTemplate>
				<DataTemplate>
					<TextBlock
						Text="{Binding Path=Name}"
						Grid.Column="2"
						Margin="0,0,0,5" TextWrapping="WrapWithOverflow"
						Style="{DynamicResource TextBlockStyleBodyText}">
					</TextBlock>
				</DataTemplate>
			</ListBox.ItemTemplate>
		</ListBox>
	</Grid>
</UserControl>
